const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
    mode: 'none',
    stats: 'none',
    devtool: 'eval',
    plugins: [
        new HtmlWebpackPlugin()
    ],
    devServer: {
        proxy: {
            '/web': {
                target: 'https://api.github.com',
                pathRewrite: {
                    '^/web':''
                },
                changeOrigin:true //很关键 主机名设置成代理地址的ip地址
            }
        }
    }
}